package com.sky.service;

import com.sky.dto.ShoppingCartDTO;
import com.sky.entity.ShoppingCart;

import java.util.List;

public interface ShoppingCartService {


    /*
    * 添加商品到购物车
    * */
    void addShoppingCart(ShoppingCartDTO shoppingCartDTO);

    /*
    * 展示购物车
    * */

    List<ShoppingCart> showShoppingCart();

    /*
    * 清空购物车
    * */

    void cleanShoppingCart();

    /*
    * 删除一个购物车数据
    * */
    void subShoppingCart(ShoppingCartDTO shoppingCartDTO);
}
